package com.woniu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Hello world!
 *
 */
@SpringBootApplication
@MapperScan("com.woniu.mapper")
@ServletComponentScan
@EnableTransactionManagement//启用 Spring 的注解驱动事务管理功能
@EnableSwagger2
@EnableFeignClients
//@EnableFeignClients(basePackages = "com.woniu.client")//开启openFeign
public class DepotStart
{
    public static void main( String[] args )
    {
        SpringApplication.run(DepotStart.class,args);
    }
}
